foregroundColor

public static EditorCommand foregroundColor(Color color)

Returns a command that allows setting the given foreground color for the selected text in a WYSIWYG editor.

Parameters

color

a new foreground color


public static EditorCommand foregroundColor(String colorName)

Returns a command that allows setting the given foreground colorName for the selected text in a WYSIWYG editor.

Parameters

colorName

a new foreground color name

Throws

when colorName is empty or blank